<template>
    <h2>生命周期</h2>
</template>

<script>
    import {onMounted, onUpdated} from 'vue'

    export default {
        name: "LifeHook",
        //created没有，因为setup比它们早
        setup() {
            //挂载
            onMounted(() => {
            })
            //XX更新
            onUpdated(() => {
            })
        }
    }
</script>

<style scoped>

</style>
